{"version":3,"file":"script.map.js","names":["window","BXMainMailForm","id","fields","options","__forms","this","getForm","prototype","getField","name","i","length","params","onSubmit","event","form","footer","BX","findChildByClassName","formWrapper","footerNode","button","disabled","PreventDefault","editor","OnSubmit","footerClone","cloneNode","Array","forEach","call","querySelectorAll","item","removeAttribute","formId","appendChild","onCustomEvent","defaultPrevented","returnValue","addClass","offsetHeight","submitAjax","ajax","htmlForm","url","getAttribute","method","dataType","onsuccess","data","removeClass","onfailure","showError","html","errorNode","alert","UI","Alert","text","inline","closeBtn","animate","color","Color","DANGER","innerHTML","append","getContainer","initScrollable","__scrollable","pos0","pos","pos1","pos2","top","scrollTop","bottom","init","__inited","findParent","tag","postForm","LHEPostForm","getHandler","BXHtmlEditor","Get","editorInited","timestamp","Date","getTime","quoteNodeId","toString","signatureNodeId","addCustomEvent","proxy","field","signature","type","isString","currentSender","input","fieldId","value","isArray","mailboxes","isNotEmptyObject","signatures","hasOwnProperty","formated","isNotEmptyString","email","insertSignature","initFields","initFooter","bind","document","scrollingElement","documentElement","scrollLeft","body","scrollBy","BXMainMailFormField","fieldsFooter","fieldsExtFooter","hiddenFields","concat","findChildrenByClassName","__switch","unfold","footerWrapper","footerButtons","hasClass","submit","resetFooter","style","left","width","height","positionFooter","offsetWidth","editorWrapper","scrollableObserver","MutationObserver","state","scrollHeight","join","__lastState","startMonitoring","setTimeout","__footerMonitoring","observe","attributes","childList","subtree","stopMonitoring","disconnect","unbind","removeCustomEvent","synchro","Sync","signatureNode","GetIframeDoc","getElementById","remove","signatureHtml","create","attrs","quoteNode","parentNode","insertBefore","createElement","FullSyncFromIframe","__row","__types","menu","menuExtButton","PopupMenu","getMenuById","close","menuWindow","parentMenuWindow","subMenuWindow","popupWindow","popupContainer","result","__menuExt","undefined","items","push","entityId","title","customData","tabs","children","map","supertitle","dialog","EntitySelector","Dialog","targetNode","multiple","dropdownMode","showAvatars","compactView","enableSearch","events","preventDefault","insert","getData","show","setMenuExt","setValue","hidden","display","folded","hide","fold","list","from","rcpt","files","selector","apply","adjust","handler","required","util","htmlspecialchars","placeholder","onclick","delimiter","className","offsetLeft","angle","closeByEsc","BXMainMailConfirm","showList","selected","callback","strip_tags","more","wrapper","link","select","search","undeleted","SocNetLogDestination","getSelected","deleteItem","itemWrapper","setAttribute","props","JSON","stringify","showEmail","clone","BXfpSelectCallback","varName","bUndeleted","containerInput","valueInput","formName","tagInputName","tagLink1","tagLink2","limit","replace","unselect","findChild","attribute","BXfpUnSelectCallback","inputContainerName","inputName","removeChild","visible","Math","min","version","selectorParams","searchInput","bindMainPopup","node","offsetTop","bindSearchPopup","unSelect","openDialog","delegate","BXfpOpenDialogCallback","inputBoxName","closeDialog","BXfpCloseDialogCallback","openSearch","itemsLast","itemsSelected","destSort","BXfpSearchBefore","BXfpSearch","defer","onPasteEvent","BXfpBlurInput","e","quoteContentNode","__folded","foldQuote","eventNode","dom","cont","toolbarCont","opacity","abortSearchRequest","closeSearch","quoteButton","quoteHandler","GetContent","quote","Focus","modeHandler","GetViewMode","parser","disk_file","regexp","phpParser","AddBxNode","Parse","bxid","attr","GetBxTag","dummy","tagName","toUpperCase","image","fileId","bxTags","CheckAndReInit","ResizeSceleton","SaveContent","trim","escRegex","RegExp","pattern","match","isPlainObject","obItemsSelected","runSelectCallback","selectorId","selectedItems","selectionStart","selection","start","end","selectionEnd","substr","focus","IsFocusedOnTextarea","textareaView","WrapWith","element","GetRange","deleteContents","InsertHtml","uid","controllers","ctrl","storage","values","src","dummyNode","SetContent","regex","types","IMG","A","nodeList","getElementsByTagName","matches","SetBxTag","controllerInit","splice","selectFile"],"sources":["script.js"],"mappings":"CACC,WAEA,GAAIA,OAAOC,eACV,OAED,IAAIA,EAAiB,SAASC,EAAIC,EAAQC,GAEzC,GAAIH,EAAeI,QAAQH,GAC1B,OAAOD,EAAeI,QAAQH,GAE/BI,KAAKJ,GAAKA,EACVI,KAAKH,OAASA,EACdG,KAAKF,QAAUA,EAEfH,EAAeI,QAAQC,KAAKJ,IAAMI,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